<div>
    <br>
    <ol class="breadcrumb" style="margin-bottom: 0px">
        <li class="active"><span class="glyphicon glyphicon-home" style="color:#23527c"></span>&nbsp;<mainpage></mainpage></li>
        <li class="active">运营分析工作台 / 结算报表</li>
    </ol>

    <ul class="nav nav-tabs marT15">
      <li role="presentation" ><a href="#/settlementStatementM" style="color: #555;">结算报表(月)</a></li>
      <li role="presentation" class="active"><a href="#/settlementStatementY" style="color:#555;">结算报表(年)</a></li>
    </ul> 

    <div class="marB15 clearfix">
        
        <form class="form-inline" action="settlementRep/out-excel" method="post" id="form">
            <div class="control-group left marR10 marT15" style="margin-left: 0px">
                    <div class="form-group left marR10" >
                        <span class="search-name">开始时间</span>
                        <div class="input-group date form_datetime" style="width:175px;">
                            <span class="input-group-addon"><span class="glyphicon glyphicon-th"></span></span>
                            <input class="form-control" size="16" type="text" id='startDate' name='startDate' ng-model="searchData.startDate" readonly>
                            <span class="input-group-addon" ng-click='clearStart()'>清除</span>
                            
                        </div>
                        <input type="hidden" id="dtp_input1" value="" /><br/>
                    </div>
                    <div class="form-group left">
                        <span class="search-name">结束时间</span>
                        <div class="input-group date form_datetime1" style="width:175px;">
                            <span class="input-group-addon"><span class="glyphicon glyphicon-th"></span></span>
                            <input class="form-control" size="16" type="text" ng-model='searchData.endDate' id="endDate" name='endDate' readonly>
                           <span class="input-group-addon" ng-click='clearEnd()'>清除</span>
                        </div>
                        <input type="hidden" id="dtp_input1" value="" /><br/>
                    </div>
            
            </div>
            <input type="text" style="display: none" name="dateFormat" value="year">
        </form>
        <a class="btn btn-primary btn-sm left marT15" id="search" ng-click='search()'><span class="glyphicon glyphicon-search"></span></a>
        <div class="right marT15" style="position:relative">
            <button class="btn btn-sm btn-primary" ng-click='outExcel()'><img style="width:25px; height:20px;" src="img/excel.png">导出表格<span ng-style='loadStyle' class="outExcelLoad"><img  src="img/load.gif"></span></button>
        </div>
    </div>

    <div class="table-box">
    <table class="table table-bordered table-striped text-center bg-info">
        <thead >
        <tr class="info">
            <th class="text-center">年份</th>
            <th class="text-center">通道</th>
            <th class="text-center">下发短信总量（条）</th>
            <th class="text-center">发送成功数</th>
            <th class="text-center">发送失败数</th>
            <th class="text-center">未返回结果总条数</th>
            <th class="text-center">接收短信总量（条）</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat = "Item in result">
            <td>{{ Item.date }}</td>
            <td class="w115">{{ Item.gateLinkName }}</td>
            <td class="w115">{{ Item.smNums }}</td><!-- <a ng-click="GoDsDetail(Item.date,Item.date,'','','',Item.gateLinkId)"></a> -->
            <td class="w115">{{ Item.recvSuc }}</td><!-- <a ng-click="GoDsDetail(Item.date,Item.date,'1','','',Item.gateLinkId)">{{ Item.recvSuc }}</a> -->
            <td class="w115">{{ Item.recvFail }}</td><!-- <a ng-click="GoDsDetail(Item.date,Item.date,'','1','',Item.gateLinkId)">{{ Item.recvFail }}</a> -->
            <td class="w115">{{ Item.recvNone }}</td><!-- <a ng-click="GoDsDetail(Item.date,Item.date,'','','1',Item.gateLinkId)">{{ Item.recvNone }}</a> -->
            <td class="w115">{{ Item.upTotal }}</td><!-- <a ng-click="GoUpDetail(Item.date,Item.date,'1',Item.gateLinkId)">{{ Item.upTotal }}</a> -->
        </tr>
        <tr>
            <!-- <td>{{ result[3].date }}</td> -->
        	<td  colspan='2'>汇总</td>
        	<td>{{ smNumsCount }}</td><!-- <a ng-click="GoDsDetail(searchData.startDate,searchData.endDate,'','','','')">{{ sendSucCount }}</a> -->
        	<td>{{ recvSucCount }}</td><!-- <a ng-click="GoDsDetail(searchData.startDate,searchData.endDate,'1','','','')">{{ recvSucCount }}</a> -->
        	<td>{{ recvFailCount }}</td><!-- <a ng-click="GoDsDetail(searchData.startDate,searchData.endDate,'','1','','')">{{ recvFailCount }}</a> -->
        	<td>{{ recvNoneCount }}</td><!-- <a ng-click="GoDsDetail(searchData.startDate,searchData.endDate,'','','1','')">{{ recvNoneCount }}</a> -->
        	<td>{{ upTotalCount }}</td><!-- <a ng-click="GoUpDetail(searchData.startDate,searchData.endDate,'1','')">{{ upTotalCount }}</a> -->
        </tr>
        </tbody>
    </table>
    </div>
</div>
<!-- 加载框 -->
  <span class='loaded' ng-show='loaded'><img  src="img/load.gif"></span>
<!-- 加载框 完成-->